package cn.edu.sdjzu.xg.kcsj.domain;

import java.io.Serializable;
import java.math.BigInteger;

public class DictItem implements Comparable<DictItem>, Serializable {
    private BigInteger id;
    private String item_text;
    private String item_value;
    private BigInteger dict_id;
    public DictItem(BigInteger id,String item_text,String item_value,BigInteger dict_id){
        super();
        this.id = id;
        this.item_text = item_text;
        this.item_value = item_value;
        this.dict_id = dict_id;
    }

    public BigInteger getId() {
        return id;
    }

    public String getItemText() {
        return item_text;
    }

    public String getItemValue() {
        return item_value;
    }

    public BigInteger getDictId() {
        return dict_id;
    }

    public void setDictId(BigInteger dict_id) {
        this.dict_id = dict_id;
    }

    public void setItemText(String item_text) {
        this.item_text = item_text;
    }

    public void setItemValue(String item_value) {
        this.item_value = item_value;
    }

    public void setId(BigInteger id) {
        this.id = id;
    }
    @Override
    public String toString() {
        return "Dict_item{" +
                "id=" + this.id +
                ", item_text='" + this.item_text + '\'' +
                ", item_value='" + this.item_value + '\'' +
                ", dict_id=" + this.dict_id +
                '}';
    }
    @Override
    public int compareTo(DictItem o) {
        return this.id.compareTo(o.id);
    }
}
